package com.anjubao.parking.municipal.parkinglot.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;

import java.time.LocalDateTime;

@NoArgsConstructor
@AllArgsConstructor
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@ApiModel(value = "ParkingLotDto",description = "停车场实体")
@ToString
public class ParkingLotDto {

	@ApiModelProperty("停车场id ")
	private Long id;
	@ApiModelProperty("停车场名称 ")
	private String name;
	@ApiModelProperty("停车场code ")
	private String parkingLotCode;
	@ApiModelProperty("停车场位置 ")
	private String location;
	@ApiModelProperty("停车场类型 1:封闭式,2:路内 ")
	private Integer type;
	@ApiModelProperty("纬度 ")
	private Double latitude;
	@ApiModelProperty("经度 ")
	private Double longitude;
	@ApiModelProperty("所属单位 ")
	private String affiliatedTo;
	@ApiModelProperty("经营者id ")
	private Long operatorId;
	@ApiModelProperty("车场状态 0:禁用 1:正常 ")
	private Integer status;
	@ApiModelProperty("车位状态 0:车位不足 1:有位 2:已满")
	private Integer parkingStatus;
	@ApiModelProperty("车场总车位数 ")
	private Integer totalSlots;
	@ApiModelProperty("剩余车位数 ")
	private Integer freeSlots=0;
	@ApiModelProperty("出口数 ")
	private Integer exits;
	@ApiModelProperty("入口数 ")
	private Integer entries;
	@ApiModelProperty("保留车位数 ")
	private Integer reservedSlots;
	@ApiModelProperty("地理位置图片 ")
	private String geoImgUrl;
	@ApiModelProperty("全景图片 ")
	private String panoramaImgUrl;
	@ApiModelProperty("停车场所在省份ID ")
	private Integer provinceId;
	@ApiModelProperty("停车场所在省份名称 ")
	private String provinceName;
	@ApiModelProperty("停车场所在城市ID ")
	private Integer cityId;
	@ApiModelProperty("停车场所在城市名称 ")
	private String cityName;
	@ApiModelProperty("停车场所在区域ID ")
	private Integer districtId;
	@ApiModelProperty("停车场所在区域名称 ")
	private String districtName;
	@ApiModelProperty("地磁数量 ")
	private Integer geomagnetismPorts;
	@ApiModelProperty("视频桩数量 ")
	private Integer videoPorts;
	@ApiModelProperty("运行状态 0:断线 1:在线 ")
	private Integer isOnline;
	@ApiModelProperty("停车场添加时间 ")
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	protected LocalDateTime createTime;
	@ApiModelProperty("白天时间段，多少分钟为一段，单位为秒,当rule_type=0时，复用此字段")
	private Integer dayTimeSection;
	@ApiModelProperty("白天每一段收多少钱，单位为分，当rule_type=0时，复用此字段")
	private Integer dayFeeSection;
	@ApiModelProperty("距离 单位米")
	private double distance;


}
